<?php
    class  Modeltoolqq extends AdminController{
        public function getTotalQQ(){
           return $this->db->query("select * from @@qq");
        }
        public function getQQ($qqNumber){
            return  $this->db->get('qq', array('qqNumber' => $qqNumber));
        }
        public function addQQ($qq){
            $this->db->insert('qq', $qq);
        }
        public function update($all,$qqNumber){
            $this->db->update('qq',$all, array('qqNumber' => $qqNumber));
        }
        public function delete($qqNumbers){    //删除多个QQ号
            $qqNumber = implode(',',$qqNumbers );
            $this->db->delete('qq', "qqNumber IN ($qqNumber)");
        }
        public function changeStatus($qqNumber){
            $this->db->query("update @@qq set qqStatus=1 WHERE qqNumber='$qqNumber'");
        }
    }
?>